// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "reset.less";
import "./assets/css/public.css";
import "./assets/css/index.less";
import "font-awesome/css/font-awesome.min.css";
import vueMoment from "vue-moment";
import router from "./router";
import store from "@/store";
import "babel-polyfill";

Vue.use(ElementUI, { size: "small", zIndex: 3000 });
Vue.use(vueMoment);
Vue.config.productionTip = false;

Vue.filter("formatPhone", p => {
  if (p) {
    return p.substring(0, 3) + "*****" + p.substring(p.length - 4);
  }
});

new Vue({
  el: "#app",
  router,
  store,
  components: { App },
  template: "<App/>"
});
